Wilkommen ∙ Welcome

This sample signature template contains all default replacement variables defined in ".\config\default replacement variables.ps1".

This file demonstrates several Set-OutlookSignatures features:

·       User photos from on-premis Active Directory or Entra ID

·       Custom images

·       Images used as shapes or inline shapes

·       Conditional image removal

·       Automatic prevention of empty signature lines

For accessibility, all sample links and images include descriptions for screen readers and similar assistive technologies. Hyperlinks use Word ScreenTips or HTML title attributes, while images use alt text. Replacement variables are supported for these descriptions.

This template file is maintained manually and may not always reflect the latest version. Custom replacement variables are not included automatically. If you find an error, please report it at https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues. Please review the documentation before opening a new issue at GitHub.

Default replacement variables

Default replacement variables are available for the current user, the current mailbox, and their managers.

The following table all available default replacement variables. Colums represent namespaces, rows represent attributes, and each cell shows the resulting variable name and the actual value.

For example, combining the namespace "$CurrentUser" with the attribute "AttributeX$" creates the the replacement variable name "Bobby".

To simplify signature design with limited space, shorter versions of replacement variables are available:

·       $CurrentUser → $U
$CurrentUserAttributeX$ can also be written as $UAttributeX$

·       $CurrentUserManager → $UM
$UMAttributeX$ can also be written as $UMAttributeX$

·       $CurrentMailbox → $M
$MAttributeX$ can also be written as $MAttributeX$

·       $CurrentMailboxManager → $MM
$MManagerAttributeX$ can also be written as $MMAttributeX$

In the following, the notation "$[CurrentUser|U]AttributeX$" is used to make it clear that either $CurrentUserAttributeX$ or $UAttributeX$ can be used. This notation also prevents Set-OutlookSignatures from recognising the variables and replacing them with actual values.

 

Logged‑on user

$CurrentUser, $U

Manager of  logged‑on user

$CurrentUserManager, $UM

Current mailbox

$CurrentMailbox, $M

Manager of current mailbox

$CurrentMailboxManager, $MM

GivenName$

$[CurrentUser|U]GivenName$

Bobby

$[CurrentUserManager|UM]GivenName$

Alex

$[CurrentMailbox|M]GivenName$

Bobby

$[CurrentMailboxManager|MM]GivenName$

Alex

Surname$

$[CurrentUser|U]Surname$

Busy

$[CurrentUserManager|UM]Surname$

Alien

$[CurrentMailbox|M]Surname$

Busy

$[CurrentMailboxManager|MM]Surname$

Alien

NameWithHonorifics$

$[CurrentUser|U]NameWithHonorifics$

Bobby Busy

$[CurrentUserManager|UM]NameWithHonorifics$

Alex Alien

$[CurrentMailbox|M]NameWithHonorifics$

Bobby Busy

$[CurrentMailboxManager|MM]NameWithHonorifics$

Alex Alien

Company$

$[CurrentUser|U]Company$

Galactic Experiences

$[CurrentUserManager|UM]Company$

Galactic Experiences

$[CurrentMailbox|M]Company$

Galactic Experiences

$[CurrentMailboxManager|MM]Company$

Galactic Experiences

Department$

$[CurrentUser|U]Department$

Office of the Executive Board

$[CurrentUserManager|UM]Department$

Executive Board

$[CurrentMailbox|M]Department$

Office of the Executive Board

$[CurrentMailboxManager|MM]Department$

Executive Board

Title$

$[CurrentUser|U]Title$

Secretary to the CEO

$[CurrentUserManager|UM]Title$

Chief Executive Officer

$[CurrentMailbox|M]Title$

Secretary to the CEO

$[CurrentMailboxManager|MM]Title$

Chief Executive Officer

Office$

$[CurrentUser|U]Office$

7409

$[CurrentUserManager|UM]Office$

7407

$[CurrentMailbox|M]Office$

7409

$[CurrentMailboxManager|MM]Office$

7407

StreetAddress$

$[CurrentUser|U]StreetAddress$

Kaisereb. Str. 206b/3/2

$[CurrentUserManager|UM]StreetAddress$

Kaisereb. Str. 206b/3/2

$[CurrentMailbox|M]StreetAddress$

Kaisereb. Str. 206b/3/2

$[CurrentMailboxManager|MM]StreetAddress$

Kaisereb. Str. 206b/3/2

Postalcode$

$[CurrentUser|U]Postalcode$

1110

$[CurrentUserManager|UM]Postalcode$

1110

$[CurrentMailbox|M]Postalcode$

1110

$[CurrentMailboxManager|MM]Postalcode$

1110

Location$

$[CurrentUser|U]Location$

Wien

$[CurrentUserManager|UM]Location$

Wien

$[CurrentMailbox|M]Location$

Wien

$[CurrentMailboxManager|MM]Location$

Wien

State$

$[CurrentUser|U]State$

 

$[CurrentUserManager|UM]State$

 

$[CurrentMailbox|M]State$

 

$[CurrentMailboxManager|MM]State$

 

Country$

$[CurrentUser|U]Country$

Austria

$[CurrentUserManager|UM]Country$

Austria

$[CurrentMailbox|M]Country$

Austria

$[CurrentMailboxManager|MM]Country$

Austria

Telephone$

$[CurrentUser|U]Telephone$

+43 800 1234,212

 

$[CurrentUser|U]Telephone-E164$

+438001234

 

$[CurrentUser|U]Telephone-International$

+43 800 1234 ext. 212

 

$[CurrentUser|U]Telephone-National$

0800 1234 ext. 212

 

$[CurrentUser|U]Telephone-RFC3966$

tel:+43-800-1234;ext=212

 

Sample link

+43 800 1234 ext. 212

$[CurrentUserManager|UM]Telephone$

+43 800 1234,101

 

$[CurrentUserManager|UM]Telephone-E164$

+438001234

 

$[CurrentUserManager|UM]Telephone-International$

+43 800 1234 ext. 101

 

$[CurrentUserManager|UM]Telephone-National$

0800 1234 ext. 101

 

$[CurrentUserManager|UM]Telephone-RFC3966$

tel:+43-800-1234;ext=101

 

Sample link

+43 800 1234 ext. 101

$[CurrentMailbox|M]Telephone$

+43 800 1234,212

 

$[CurrentMailbox|M]Telephone-E164$

+438001234

 

$[CurrentMailbox|M]Telephone-International$

+43 800 1234 ext. 212

 

$[CurrentMailbox|M]Telephone-National$

0800 1234 ext. 212

 

$[CurrentMailbox|M]Telephone-RFC3966$

tel:+43-800-1234;ext=212

 

Sample link

+43 800 1234 ext. 212

$[CurrentMailboxManager|MM]Telephone$

+43 800 1234,101

 

$[CurrentMailboxManager|MM]Telephone-E164$

+438001234

 

$[CurrentMailboxManager|MM]Telephone-International$

+43 800 1234 ext. 101

 

$[CurrentMailboxManager|MM]Telephone-National$

0800 1234 ext. 101

 

$[CurrentMailboxManager|MM]Telephone-RFC3966$

tel:+43-800-1234;ext=101

 

Sample link

+43 800 1234 ext. 101

Fax$

 

$[CurrentUser|U]Fax$

+43 800 1234,9212

 

$[CurrentUser|U]Fax-E164$

+438001234

 

$[CurrentUser|U]Fax-International$

+43 800 1234 ext. 9212

 

$[CurrentUser|U]Fax-National$

0800 1234 ext. 9212

 

$[CurrentUser|U]Fax-RFC3966$

tel:+43-800-1234;ext=9212

 

Sample link

+43 800 1234 ext. 9212

$[CurrentUserManager|UM]Fax$

+43 800 1234,9101

 

$[CurrentUserManager|UM]Fax-E164$

+438001234

 

$[CurrentUserManager|UM]Fax-International$

+43 800 1234 ext. 9101

 

$[CurrentUserManager|UM]Fax-National$

0800 1234 ext. 9101

 

$[CurrentUserManager|UM]Fax-RFC3966$

tel:+43-800-1234;ext=9101

 

Sample link

+43 800 1234 ext. 9101

$[CurrentMailbox|M]Fax$

+43 800 1234,9212

 

$[CurrentMailbox|M]Fax-E164$

+438001234

 

$[CurrentMailbox|M]Fax-International$

+43 800 1234 ext. 9212

 

$[CurrentMailbox|M]Fax-National$

0800 1234 ext. 9212

 

$[CurrentMailbox|M]Fax-RFC3966$

tel:+43-800-1234;ext=9212

 

Sample link

+43 800 1234 ext. 9212

$[CurrentMailboxManager|MM]Fax$

+43 800 1234,9101

 

$[CurrentMailboxManager|MM]Fax-E164$

+438001234

 

$[CurrentMailboxManager|MM]Fax-International$

+43 800 1234 ext. 9101

 

$[CurrentMailboxManager|MM]Fax-National$

0800 1234 ext. 9101

 

$[CurrentMailboxManager|MM]Fax-RFC3966$

tel:+43-800-1234;ext=9101

 

Sample link

+43 800 1234 ext. 9101

Mobile$

 

$[CurrentUser|U]Mobile$

+43 800 9876543

 

$[CurrentUser|U]Mobile-E164$

+438009876543

 

$[CurrentUser|U]Mobile-International$

+43 800 9876543

 

$[CurrentUser|U]Mobile-National$

0800 9876543

 

$[CurrentUser|U]Mobile-RFC3966$

tel:+43-800-9876543

 

Sample link

+43 800 9876543

$[CurrentUserManager|UM]Mobile$

+43 800 12345678

 

$[CurrentUserManager|UM]Mobile-E164$

+4380012345678

 

$[CurrentUserManager|UM]Mobile-International$

+43 800 12345678

 

$[CurrentUserManager|UM]Mobile-National$

0800 12345678

 

$[CurrentUserManager|UM]Mobile-RFC3966$

tel:+43-800-12345678

 

Sample link

+43 800 12345678

$[CurrentMailbox|M]Mobile$

+43 800 9876543

 

$[CurrentMailbox|M]Mobile-E164$

+438009876543

 

$[CurrentMailbox|M]Mobile-International$

+43 800 9876543

 

$[CurrentMailbox|M]Mobile-National$

0800 9876543

 

$[CurrentMailbox|M]Mobile-RFC3966$

tel:+43-800-9876543

 

Sample link

+43 800 9876543

$[CurrentMailboxManager|MM]Mobile$

+43 800 12345678

 

$[CurrentMailboxManager|MM]Mobile-E164$

+4380012345678

 

$[CurrentMailboxManager|MM]Mobile-International$

+43 800 12345678

 

$[CurrentMailboxManager|MM]Mobile-National$

0800 12345678

 

$[CurrentMailboxManager|MM]Mobile-RFC3966$

tel:+43-800-12345678

 

Sample link

+43 800 12345678

Mail$

$[CurrentUser|U]Mail$

bobby.busy@galactic.test

 

Sample link

bobby.busy@galactic.test

$[CurrentUserManager|UM]Mail$

alex.alien@galactic.test

 

Sample link

alex.alien@galactic.test

$[CurrentMailbox|M]Mail$

bobby.busy@galactic.test

 

Sample link

bobby.busy@galactic.test

$[CurrentMailboxManager|MM]Mail$

alex.alien@galactic.test

 

Sample link

alex.alien@galactic.test

MailNickname$

$[CurrentUser|U]MailNickname$

bobby.busy

$[CurrentUserManager|UM]MailNickname$

alex.alien

$[CurrentMailbox|M]MailNickname$

bobby.busy

$[CurrentMailboxManager|MM]MailNickname$

alex.alien

DisplayName$

$[CurrentUser|U]DisplayName$

Bobby Busy

$[CurrentUserManager|UM]DisplayName$

Alex Alien

$[CurrentMailbox|M]DisplayName$

Bobby Busy

$[CurrentMailboxManager|MM]DisplayName$

Alex Alien

ExtAttr1$

$[CurrentUser|U]ExtAttr1$

Sekretär:in des:der Vorstandsvorsitzenden

$[CurrentUserManager|UM]ExtAttr1$

Vorstandsvorsitzende:r

$[CurrentMailbox|M]ExtAttr1$

Sekretär:in des:der Vorstandsvorsitzenden

$[CurrentMailboxManager|MM]ExtAttr1$

Vorstandsvorsitzende:r

ExtAttr2$

$[CurrentUser|U]ExtAttr2$

Büro des Vorstands

$[CurrentUserManager|UM]ExtAttr2$

Vorstand

$[CurrentMailbox|M]ExtAttr2$

Büro des Vorstands

$[CurrentMailboxManager|MM]ExtAttr2$

Vorstand

ExtAttr3$

$[CurrentUser|U]ExtAttr3$

Mr.

$[CurrentUserManager|UM]ExtAttr3$

Ms.

$[CurrentMailbox|M]ExtAttr3$

Mr.

$[CurrentMailboxManager|MM]ExtAttr3$

Ms.

ExtAttr4$

$[CurrentUser|U]ExtAttr4$

 

$[CurrentUserManager|UM]ExtAttr4$

 

$[CurrentMailbox|M]ExtAttr4$

 

$[CurrentMailboxManager|MM]ExtAttr4$

 

ExtAttr5$

$[CurrentUser|U]ExtAttr5$

 

$[CurrentUserManager|UM]ExtAttr5$

 

$[CurrentMailbox|M]ExtAttr5$

 

$[CurrentMailboxManager|MM]ExtAttr5$

 

ExtAttr6$

$[CurrentUser|U]ExtAttr6$

 

$[CurrentUserManager|UM]ExtAttr6$

 

$[CurrentMailbox|M]ExtAttr6$

 

$[CurrentMailboxManager|MM]ExtAttr6$

 

ExtAttr7$

$[CurrentUser|U]ExtAttr7$

 

$[CurrentUserManager|UM]ExtAttr7$

 

$[CurrentMailbox|M]ExtAttr7$

 

$[CurrentMailboxManager|MM]ExtAttr7$

 

ExtAttr8$

$[CurrentUser|U]ExtAttr8$

 

$[CurrentUserManager|UM]ExtAttr8$

 

$[CurrentMailbox|M]ExtAttr8$

 

$[CurrentMailboxManager|MM]ExtAttr8$

 

ExtAttr9$

$[CurrentUser|U]ExtAttr9$

 

$[CurrentUserManager|UM]ExtAttr9$

 

$[CurrentMailbox|M]ExtAttr9$

 

$[CurrentMailboxManager|MM]ExtAttr9$

 

ExtAttr10$

$[CurrentUser|U]ExtAttr10$

 

$[CurrentUserManager|UM]ExtAttr10$

 

$[CurrentMailbox|M]ExtAttr10$

 

$[CurrentMailboxManager|MM]ExtAttr10$

 

ExtAttr11$

$[CurrentUser|U]ExtAttr11$

 

$[CurrentUserManager|UM]ExtAttr11$

 

$[CurrentMailbox|M]ExtAttr11$

 

$[CurrentMailboxManager|MM]ExtAttr11$

 

ExtAttr12$

$[CurrentUser|U]ExtAttr12$

 

$[CurrentUserManager|UM]ExtAttr12$

 

$[CurrentMailbox|M]ExtAttr12$

 

$[CurrentMailboxManager|MM]ExtAttr12$

 

ExtAttr13$

$[CurrentUser|U]ExtAttr13$

 

$[CurrentUserManager|UM]ExtAttr13$

 

$[CurrentMailbox|M]ExtAttr13$

 

$[CurrentMailboxManager|MM]ExtAttr13$

 

ExtAttr14$

$[CurrentUser|U]ExtAttr14$

 

$[CurrentUserManager|UM]ExtAttr14$

 

$[CurrentMailbox|M]ExtAttr14$

 

$[CurrentMailboxManager|MM]ExtAttr14$

 

ExtAttr15$

$[CurrentUser|U]ExtAttr15$

 

$[CurrentUserManager|UM]ExtAttr15$

 

$[CurrentMailbox|M]ExtAttr15$

 

$[CurrentMailboxManager|MM]ExtAttr15$

 

PostalAddressNoCompany$

$[CurrentUser|U]PostalAddressNoCompany$

Kaisereb. Str. 206b/3/2
1110 Wien
Austria

$[CurrentUserManager|UM]PostalAddressNoCompany$

Kaisereb. Str. 206b/3/2
1110 Wien
Austria

$[CurrentMailbox|M]PostalAddressNoCompany$

Kaisereb. Str. 206b/3/2
1110 Wien
Austria

$[CurrentMailboxManager|MM]PostalAddressNoCompany$

Kaisereb. Str. 206b/3/2
1110 Wien
Austria

PostalAddressCompany$

$[CurrentUser|U]PostalAddressCompany$

Galactic Experiences
Kaisereb.
Str. 206b/3/2
1110 Wien
Austria

$[CurrentUserManager|UM]PostalAddressCompany$

Galactic Experiences
Kaisereb.
Str. 206b/3/2
1110 Wien
Austria

$[CurrentMailbox|M]PostalAddressCompany$

Galactic Experiences
Kaisereb.
Str. 206b/3/2
1110 Wien
Austria

$[CurrentMailboxManager|MM]PostalAddressCompany$

Galactic Experiences
Kaisereb.
Str. 206b/3/2
1110 Wien
Austria

PostalAddress$

$[CurrentUser|U]PostalAddress$

Bobby Busy
Office of the Executive Board
Galactic Experiences
Kaisereb.
Str. 206b/3/2
1110 Wien
Austria

$[CurrentUserManager|UM]PostalAddress$

Alex Alien
Executive Board
Galactic Experiences
Kaisereb.
Str. 206b/3/2
1110 Wien
Austria

$[CurrentMailbox|M]PostalAddress$

Bobby Busy
Office of the Executive Board
Galactic Experiences
Kaisereb.
Str. 206b/3/2
1110 Wien
Austria

$[CurrentMailboxManager|MM]PostalAddress$

Alex Alien
Executive Board
Galactic Experiences
Kaisereb.
Str. 206b/3/2
1110 Wien
Austria

Photo$,
PhotoDeleteEmpty$

See "User photos" below

See "User photos" below

See "User photos" below

See section "User photos" below

CustomImage[1..10]$,
CustomImage[1..10]DeleteEmpty$

See "Custom images" below

See section "Custom images" below

See section "Custom images" below

See section "Custom images" below

UndefinedVariableX$

$[CurrentUser|U] UndefinedVariableX$

$UUndefinedVariableX$

$[CurrentUserManager|UM]UndefinedVariableX$

$UMUndefinedVariableX$

$[CurrentMailbox|M]UndefinedVariableX$

$MUndefinedVariableX$

$[CurrentMailboxManager|MM]UndefinedVariableX$

$MMUndefinedVariableX$

User photos

User photos from Active Directory/Entra ID are automatically available via replacement variables.        

Remarks

Logged‑on user

$CurrentUser, $U

Manager of logged‑on user

$CurrentUserManager, $UM

Current mailbox

$CurrentMailbox, $M

Manager of current mailbox

$CurrentMailboxManager, $MM

Photo$

The first line uses images inserted in Word with embedding and linking. The second line uses shapes with image fills.

 

The alternate texts contain "${…]Photo$".

 

If there is no user photo available, the sample picture or default shape fill is shown.

$[CurrentUser|U]Photo$

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

$[CurrenUserManager|UM]Photo$

This is a placeholder image for the photo of the current user manager. If the current user manager has no photo, this placeholder is still shown.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

$[CurrentMailbox|M]Photo$

This is a placeholder image for the photo of the current mailbox. If the current mailbox has no photo, this placeholder is still shown.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

$[CurrentMailboxManager|MM]Photo$

This is a placeholder image for the photo of the current mailbox manager. If the current mailbox manager has no photo, this placeholder is still shown.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

PhotoDeleteEmpty$

The first line uses images inserted in Word with embedding and linking. The second line uses shapes with image fills.

 

The alternate texts contain "${…]PhotoDeleteEmpty$".

 

If there is no user photo available, the picture or shape is deleted.

$[CurrentUser|U]Photo$

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.

$[CurrentUserManager|UM]Photo$

This is a placeholder image for the photo of the current user manager. If the current user manager has no photo, this placeholder is deleted.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.

$[CurrentMailbox|M]Photo$

This is a placeholder image for the photo of the current mailbox. If the current mailbox has no photo, this placeholder is deleted.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.

$[CurrentMailboxManager|MM]Photo$

This is a placeholder image for the photo of the current mailbox manager. If the current mailbox manager has no photo, this placeholder is deleted.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is deleted.

Photo$

with Word image effects

This row is only relevant when using DOCX templates, as HTM templates do not support Word image effects.

 

The first line uses images inserted in Word with embedding and linking. The second line uses shapes with image fills. Additionally, Word image effects are applied.

 

The alternate texts contain "${…]Photo$".

 

If there is no user photo available, the sample picture or default shape fill is shown.

$[CurrentUser|U]Photo$

This is a placeholder image for the photo of the current user, with some fancy formatting that can only be used with DOCX templates. If the current user has no photo, this placeholder is still shown.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

$[CurrentUserManager|UM]Photo$

This is a placeholder image for the photo of the current user manager, with some fancy formatting that can only be used with DOCX templates. If the current user manager has no photo, this placeholder is still shown.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

$[CurrentMailbox|M]Photo$

This is a placeholder image for the photo of the current mailbox, with some fancy formatting that can only be used with DOCX templates. If the current mailbox has no photo, this placeholder is still shown.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

$[CurrentMailboxManager|MM]Photo$

This is a placeholder image for the photo of the current mailbox manager, with some fancy formatting that can only be used with DOCX templates. If the current mailbox manager has no photo, this placeholder is still shown.

 

This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.
This is a placeholder image for the photo of the current user. If the current user has no photo, this placeholder is still shown.

Custom images

Fore each replacement variable namespace, there are 10 variables you can fill with custom image data:

·       $[CurrentUser|U]CustomImage[1..10]$, $[CurrentUser|U]CustomImage[1..10]DeleteEmpty$

·       $[CurrentUserManager|UM]CustomImage[1..10]$, $[CurrentUserManager|UM]CustomImage[1..10]DeleteEmpty$

·       $[CurrentMailbox|M]CustomImage[1..10]$, $[CurrentMailbox|M]CustomImage[1..10]DeleteEmpty$

·       $[CurrentMailboxManager|MM]CustomImage[1..10]$, $[CurrentMailboxManager|MM]CustomImage[1..10]DeleteEmpty$

Per default, all custom image variables are empty, but CustomImage1 is a QR code containing a vCard.

Remarks

Logged‑on user

$CurrentUser, $U

Manager of logged‑on user

$CurrentUserManager, $UM

Current mailbox

$CurrentMailbox, $M

Manager of current mailbox

$CurrentMailboxManager, $MM

CustomImage1$

The first line uses a shape with image fill.

 

The alternate text contains "${…]Photo$".

 

If there is no user photo available, the default shape fill is shown.

$[CurrentUser|U]CustomImage1$

This is a placeholder image for CustomImage1 of the current user. If the current user has no CustomImage1, this placeholder is still shown.

$[CurrentUserManager|UM]CustomImage1$

This is a placeholder image for CustomImage1 of the current user manager. If the current user manager has no CustomImage1, this placeholder is still shown.

$[CurrentMailbox|M]CustomImage1$

This is a placeholder image for CustomImage1 of the current mailbox. If the current mailbox has no CustomImage1, this placeholder is still shown.

$[CurrentMailboxManager|MM]CustomImage1$

This is a placeholder image for CustomImage1 of the current mailbox manager. If the current mailbox manager has no CustomImage1, this placeholder is still shown.

CustomImage1DeleteEmpty$

The first line uses a shape with image fill.

 

The alternate text contains "${…]PhotoDeleteEmpty$".

 

If there is no user photo available, the shape is deleted.

$[CurrentUser|U]CustomImage1DeleteEmpty$

This is a placeholder image for CustomImage1 of the current user. If the current user has no CustomImage1, this placeholder is deleted.

$[CurrentUserManager|UM]CustomImage1$

This is a placeholder image for CustomImage1 of the current user manager. If the current user manager has no CustomImage1, this placeholder is deleted.

$[CurrentMailbox|M]CustomImage1DeleteEmpty$

This is a placeholder image for CustomImage1 of the current mailbox. If the current mailbox has no CustomImage1, this placeholder is deleted.

$[CurrentMailboxManager|MM]CustomImage1DeleteEmpty$

This is a placeholder image for CustomImage1 of the current mailbox manager. If the current mailbox manager has no CustomImage1, this placeholder is deleted.

Conditional deletion of images

Below this line, the template file contains four rectangles, each with a different color: blue, red, yellow, and green.

The blue rectangle is always shown.The red rectangle is only shown when the CurrentUserTelephone replacement variable has a value.
The green rectangle is only shown when the CurrentMailboxManagerMail replacement variable has a value.

In the resulting signature file, not all these rectangles may appear:

·       The blue rectangle is always shown.

·       The red rectangle is only shown when the CurrentUserTelephone replacement variable has a value.

·       The yellow rectangle is only shown when the CurrentMailboxExtAttr10 replacement variable has a value.

·       The green rectangle is only shown when the CurrentMailboxManagerMail replacement variable has a value.

As with the other images, this behavior is controlled using the alternative text property of the shape. For example, the red box’s alternative text contains $[CurrentUser|U]TelephoneDeleteEmpty$, which deletes the box when the logged-on user does not have a telefphone number set.

You can use this, for example, to:

·       Only show images with links to social networks when the corresponding link is available in an Active Directory/Entra ID/Graph attribute.

·       Show or hide pictures based on the group membership of the current mailbox (only use one template file instead of many only differing by the images used – see the chapter "Delete images when attribute is empty, variable content based on group membership" in the FAQ for details).

Avoid empty lines in signatures

See the chapter "How to avoid blank lines when replacement variables return an empty string?" in the FAQ for configuration details.

In short, you define optional text as a variable, including optional line breaks, and use this custom replacement variable in your template.

The following example shows this for telephone and mobile numbers:

With empty lines

Without empty lines

Definition

Email: $[CurrentUser|U]Mail$
Telephone: $[CurrentUser|U]Telephone$
Mobile: $[CurrentUser|U]Mobile$

Email: $[CurrentUser|U]Mail$$[CurrentUser|U]Telephone-prefix-noempty$$[CurrentUser|U]Telephone$$[CurrentUser|U]Mobile-prefix-noempty$$[CurrentUser|U]Mobile$

Telephone$

and Mobile$

exist

Email: bobby.busy@galactic.test
Telephone: +43 800 1234,212
Mobile: +43 800 9876543

Email: bobby.busy@galactic.test
Telephone: +43 800 1234,212
Mobile: +43 800 9876543

Only

Telephone$

exists

Email: bobby.busy@galactic.test
Telephone: +43 800 1234,212
Mobile:

Email: bobby.busy@galactic.test
Telephone: +43 800 1234,212

Only

Mobile$

exists

Email: bobby.busy@galactic.test
Telephone:
Mobile: +43 800 9876543

Email: bobby.busy@galactic.test
Mobile: +43 800 9876543

Telephone$

and Mobile$

do not exist

Email: bobby.busy@galactic.test
Telephone:
Mobile:

Email: bobby.busy@galactic.test

Shapes and inline shapes

The following sample text contains two images which are shapes and not inline shapes: A person placeholder image behind the sample text, and a person placeholder image in front of the sample text.

The layout of the final signature file may be unexpected as only inline shapes are handled as if they are part of the text. In the concrete example, most browsers will correctly render the resulting HTM signature file, displaying the person placeholder images behind and in front of the text, but Outlook may: Display both person placeholder images at the beginning of the paragraph and treat them as inline shapes, or not display them at all, or show an error.

This is a non-inline shape placed before the text.This is a non-inline shape placed behind the text.Set-OutlookSignatures shows a warning when non-inline shapes are found in a template.

Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.